<%-- 
    Document   : confirmSignUp
    Created on : 2014/8/25, 下午 05:23:37
    Author     : Felix
--%>

<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
        dao.BaseDAO y = new dao.BaseDAO();//建立BaseDAO物件
        String username = request.getParameter("username");
        String birthday = request.getParameter("birthday");
        String tel = request.getParameter("tel");
        String address = request.getParameter("address");
        String email = request.getParameter("email");
        String password = request.getParameter("password");
        String ConfirmPassword = request.getParameter("ConfirmPassword");
        String sql="insert into userinfo(姓名,生日,電話,地址,email,密碼) values(?,?,?,?,?,?)";//sql新增欄位資料語法
        String ary[]={username,birthday,tel,address,email,password};
        int x = y.modify(sql, ary);//執行BaseDao java類別的modify方法，此方法會轉成int型態，並把內容指定給變數x
        
    %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>您的註冊資料!</h1>
        <%=username%><br>
        <%=birthday%><br>
        <%=tel%><br>
        <%=address%><br>
        <%=email%><br>
        <%=username%><br>
        <%=password%>
    </body>
</html>
